﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace FanaticRock.Core.Helpers
{
    public static class ArrayHelper
    {
        public static T[] CloneArray<T>(T[] sourceArray) where T : ICloneable
        {
            if (sourceArray == null) return null;
            return sourceArray.Select(i => (T)i.Clone()).ToArray();
        }
    }
}
